    <%
    require '/var/www/html/aboutyou-ruby-sdk/AboutYou-SDK/lib/aboutyou-sdk.rb'
        ay = AY.new(100, '3ed93394c2b5ebd12c104b177b928ad0')

        criteria = ay.product_search_criteria.select_categories(true)

        productResult = ay.fetch_product_search(criteria)
        categories = productResult.categories

        categories.each do |key, category|
    %>
            <%= category.name + ' (' + String(category.product_count) + ')' %>
    <%
        end
    %>